const svgCaptcha = require('svg-captcha')
const express = require('express')
const router = express.Router()
//验证码配置路由
router.get('/', function(req, res) {
    let captcha = svgCaptcha.create()
    req.session.captcha = captcha.text
    res.type('svg')
    res.status(200).send(captcha.data)
})
module.exports = router
